<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'cart-form',
        'enableAjaxValidation' => false,
            ));
    ?>

   <p class="note">Trường nhập liệu với <span class="required">*</span> là bắt buộc.</p>

    <?php echo $form->errorSummary($cart); ?>

    <div class="row">
        <?php echo $form->labelEx($cart, 'user_id'); ?>
        <?php echo $form->textField($cart, 'user_id'); ?>
        <?php echo $form->error($cart, 'user_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'total_money'); ?>
        <?php echo $form->textField($cart, 'total_money'); ?>
        <?php echo $form->error($cart, 'total_money'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'pay_money'); ?>
        <?php echo $form->textField($cart, 'pay_money'); ?>
        <?php echo $form->error($cart, 'pay_money'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'shipping_cost'); ?>
        <?php echo $form->textField($cart, 'shipping_cost'); ?>
        <?php echo $form->error($cart, 'shipping_cost'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'send_date'); ?>
        <?php echo $form->textField($cart, 'send_date'); ?>
        <?php echo $form->error($cart, 'send_date'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'Tình trạng' . ' (*)'); ?>
        <?php
        echo $form->dropDownList($cart, 'state', CHtml::listData($states, 'id', 'name'));
        ?>
        <?php echo $form->error($cart, 'state'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($cart, 'note'); ?>
        <?php echo $form->textArea($cart, 'note', array('rows' => 6, 'cols' => 50)); ?>
        <?php echo $form->error($cart, 'note'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($cart->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->